package com.taxi.driver.module.account.center;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.taxi.driver.R;
import com.taxi.driver.common.BaseFragment;
import com.taxi.driver.module.account.center.dagger.DaggerDriverCenterComponent;
import com.taxi.driver.module.account.center.dagger.DriverCenterModule;

import javax.inject.Inject;

/**
 * 功能描述：
 */
public class DriverCenterFragment extends BaseFragment implements DriverCenterContract.View {

    public static DriverCenterFragment newInstance() {
        return new DriverCenterFragment();
    }

    @Inject
    DriverCenterPresenter mPresenter;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        mView = inflater.inflate(R.layout.fragment_driver_center, container, false);
        return mView;
    }

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        DaggerDriverCenterComponent.builder()
                .appComponent(getAppComponent())
                .driverCenterModule(new DriverCenterModule(this))
                .build().inject(this);
    }

    @Override
    public void showAvatar(String avatarUrl) {

    }

}
